import request from '@/utils/http'

// 各类基金类型占市值的比例
export async function getPortfolioFundTypeAllocation(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/CombinedOverallFeatures/getPortfolioFundTypeAllocation`,{
    method: 'POST',
    data: params
  })
}

// 各类资产类型占市值的比例
export async function getPortfolioAssetTypeAllocation(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/CombinedOverallFeatures/getPortfolioAssetTypeAllocation`,{
    method: 'POST',
    data: params
  })
}

// 查询动态表头树
export async function queryFieldTree(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/CombinedOverallFeatures/queryFieldTree`,{
    method: 'POST',
    data: params
  })
}

// 当前组合整体持仓查询列表
export async function queryList(params?: any): Promise<any>{
  return request(`/api/fund/portfolio/CombinedOverallFeatures/queryList`,{
    method: 'POST',
    data: params
  })
}